package com.ibm.wsspi.sibx.mediation.flow.ejb;

import com.ibm.ejs.container.*;
import java.rmi.RemoteException;

/**
 * EJSLocalStatelessPegasServiceMediation_e86bd556
 */
public class EJSLocalStatelessPegasServiceMediation_e86bd556 extends EJSLocalWrapper implements com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowLocal {
	/**
	 * EJSLocalStatelessPegasServiceMediation_e86bd556
	 */
	public EJSLocalStatelessPegasServiceMediation_e86bd556() {
		super();	}
	/**
	 * invokeEventFlow
	 */
	public void invokeEventFlow(com.ibm.ws.sibx.mediation.esb.SIBXEvent arg0, commonj.sdo.DataObject arg1, com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory arg2) throws com.ibm.wsspi.sibx.mediation.flow.MediationRuntimeException, com.ibm.wsspi.sibx.mediation.MediationConfigurationException, com.ibm.wsspi.sibx.mediation.MediationBusinessException {
		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);
		Object[] _jacc_parms = null;
		
		try {
			if ( container.doesJaccNeedsEJBArguments(this) )
			{
				_jacc_parms = new Object[3];
				_jacc_parms[0] = arg0;
				_jacc_parms[1] = arg1;
				_jacc_parms[2] = arg2;
			}
	com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean beanRef = (com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean)container.preInvoke(this, 0, _EJS_s, _jacc_parms);
			beanRef.invokeEventFlow(arg0, arg1, arg2);
		}
		catch (com.ibm.wsspi.sibx.mediation.flow.MediationRuntimeException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (com.ibm.wsspi.sibx.mediation.MediationConfigurationException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (com.ibm.wsspi.sibx.mediation.MediationBusinessException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (java.rmi.RemoteException ex) {
		 	_EJS_s.setUncheckedLocalException(ex);
		}
		catch (Throwable ex) {
			_EJS_s.setUncheckedLocalException(ex);
		}

		finally {
			try {
				container.postInvoke(this, 0, _EJS_s);
			} catch ( RemoteException ex ) {
				_EJS_s.setUncheckedLocalException(ex);
			} finally {
				container.putEJSDeployedSupport(_EJS_s);
			}
		}
		return ;
	}
	/**
	 * invokeFaultFlow
	 */
	public void invokeFaultFlow(com.ibm.wsspi.sibx.mediation.flow.MediationFlowKey arg0, commonj.sdo.DataObject arg1, com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory arg2) throws com.ibm.wsspi.sibx.mediation.flow.MediationRuntimeException, com.ibm.wsspi.sibx.mediation.MediationConfigurationException, com.ibm.wsspi.sibx.mediation.MediationBusinessException {
		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);
		Object[] _jacc_parms = null;
		
		try {
			if ( container.doesJaccNeedsEJBArguments(this) )
			{
				_jacc_parms = new Object[3];
				_jacc_parms[0] = arg0;
				_jacc_parms[1] = arg1;
				_jacc_parms[2] = arg2;
			}
	com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean beanRef = (com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean)container.preInvoke(this, 1, _EJS_s, _jacc_parms);
			beanRef.invokeFaultFlow(arg0, arg1, arg2);
		}
		catch (com.ibm.wsspi.sibx.mediation.flow.MediationRuntimeException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (com.ibm.wsspi.sibx.mediation.MediationConfigurationException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (com.ibm.wsspi.sibx.mediation.MediationBusinessException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (java.rmi.RemoteException ex) {
		 	_EJS_s.setUncheckedLocalException(ex);
		}
		catch (Throwable ex) {
			_EJS_s.setUncheckedLocalException(ex);
		}

		finally {
			try {
				container.postInvoke(this, 1, _EJS_s);
			} catch ( RemoteException ex ) {
				_EJS_s.setUncheckedLocalException(ex);
			} finally {
				container.putEJSDeployedSupport(_EJS_s);
			}
		}
		return ;
	}
	/**
	 * invokeRequestFlow
	 */
	public void invokeRequestFlow(com.ibm.wsspi.sibx.mediation.flow.MediationFlowKey arg0, commonj.sdo.DataObject arg1, com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory arg2) throws com.ibm.wsspi.sibx.mediation.flow.MediationRuntimeException, com.ibm.wsspi.sibx.mediation.MediationConfigurationException, com.ibm.wsspi.sibx.mediation.MediationBusinessException {
		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);
		Object[] _jacc_parms = null;
		
		try {
			if ( container.doesJaccNeedsEJBArguments(this) )
			{
				_jacc_parms = new Object[3];
				_jacc_parms[0] = arg0;
				_jacc_parms[1] = arg1;
				_jacc_parms[2] = arg2;
			}
	com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean beanRef = (com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean)container.preInvoke(this, 2, _EJS_s, _jacc_parms);
			beanRef.invokeRequestFlow(arg0, arg1, arg2);
		}
		catch (com.ibm.wsspi.sibx.mediation.flow.MediationRuntimeException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (com.ibm.wsspi.sibx.mediation.MediationConfigurationException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (com.ibm.wsspi.sibx.mediation.MediationBusinessException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (java.rmi.RemoteException ex) {
		 	_EJS_s.setUncheckedLocalException(ex);
		}
		catch (Throwable ex) {
			_EJS_s.setUncheckedLocalException(ex);
		}

		finally {
			try {
				container.postInvoke(this, 2, _EJS_s);
			} catch ( RemoteException ex ) {
				_EJS_s.setUncheckedLocalException(ex);
			} finally {
				container.putEJSDeployedSupport(_EJS_s);
			}
		}
		return ;
	}
	/**
	 * invokeResponseFlow
	 */
	public void invokeResponseFlow(com.ibm.wsspi.sibx.mediation.flow.MediationFlowKey arg0, commonj.sdo.DataObject arg1, com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory arg2) throws com.ibm.wsspi.sibx.mediation.flow.MediationRuntimeException, com.ibm.wsspi.sibx.mediation.MediationConfigurationException, com.ibm.wsspi.sibx.mediation.MediationBusinessException {
		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);
		Object[] _jacc_parms = null;
		
		try {
			if ( container.doesJaccNeedsEJBArguments(this) )
			{
				_jacc_parms = new Object[3];
				_jacc_parms[0] = arg0;
				_jacc_parms[1] = arg1;
				_jacc_parms[2] = arg2;
			}
	com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean beanRef = (com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean)container.preInvoke(this, 3, _EJS_s, _jacc_parms);
			beanRef.invokeResponseFlow(arg0, arg1, arg2);
		}
		catch (com.ibm.wsspi.sibx.mediation.flow.MediationRuntimeException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (com.ibm.wsspi.sibx.mediation.MediationConfigurationException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (com.ibm.wsspi.sibx.mediation.MediationBusinessException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (java.rmi.RemoteException ex) {
		 	_EJS_s.setUncheckedLocalException(ex);
		}
		catch (Throwable ex) {
			_EJS_s.setUncheckedLocalException(ex);
		}

		finally {
			try {
				container.postInvoke(this, 3, _EJS_s);
			} catch ( RemoteException ex ) {
				_EJS_s.setUncheckedLocalException(ex);
			} finally {
				container.putEJSDeployedSupport(_EJS_s);
			}
		}
		return ;
	}
	/**
	 * transactionNotSupportedWriteContext
	 */
	public void transactionNotSupportedWriteContext(com.ibm.wsspi.sibx.context.ContextStore arg0, java.lang.String arg1, long arg2, com.ibm.wsspi.sibx.context.Context arg3) throws com.ibm.wsspi.sibx.context.DuplicateKeyException, com.ibm.wsspi.sibx.context.StoreException {
		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);
		Object[] _jacc_parms = null;
		
		try {
			if ( container.doesJaccNeedsEJBArguments(this) )
			{
				_jacc_parms = new Object[4];
				_jacc_parms[0] = arg0;
				_jacc_parms[1] = arg1;
				_jacc_parms[2] = new java.lang.Long(arg2);
				_jacc_parms[3] = arg3;
			}
	com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean beanRef = (com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean)container.preInvoke(this, 4, _EJS_s, _jacc_parms);
			beanRef.transactionNotSupportedWriteContext(arg0, arg1, arg2, arg3);
		}
		catch (com.ibm.wsspi.sibx.context.DuplicateKeyException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (com.ibm.wsspi.sibx.context.StoreException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (java.rmi.RemoteException ex) {
		 	_EJS_s.setUncheckedLocalException(ex);
		}
		catch (Throwable ex) {
			_EJS_s.setUncheckedLocalException(ex);
		}

		finally {
			try {
				container.postInvoke(this, 4, _EJS_s);
			} catch ( RemoteException ex ) {
				_EJS_s.setUncheckedLocalException(ex);
			} finally {
				container.putEJSDeployedSupport(_EJS_s);
			}
		}
		return ;
	}
	/**
	 * transactionSupportsWriteContext
	 */
	public void transactionSupportsWriteContext(com.ibm.wsspi.sibx.context.ContextStore arg0, java.lang.String arg1, long arg2, com.ibm.wsspi.sibx.context.Context arg3) throws com.ibm.wsspi.sibx.context.DuplicateKeyException, com.ibm.wsspi.sibx.context.StoreException {
		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);
		Object[] _jacc_parms = null;
		
		try {
			if ( container.doesJaccNeedsEJBArguments(this) )
			{
				_jacc_parms = new Object[4];
				_jacc_parms[0] = arg0;
				_jacc_parms[1] = arg1;
				_jacc_parms[2] = new java.lang.Long(arg2);
				_jacc_parms[3] = arg3;
			}
	com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean beanRef = (com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean)container.preInvoke(this, 5, _EJS_s, _jacc_parms);
			beanRef.transactionSupportsWriteContext(arg0, arg1, arg2, arg3);
		}
		catch (com.ibm.wsspi.sibx.context.DuplicateKeyException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (com.ibm.wsspi.sibx.context.StoreException ex) {
			_EJS_s.setCheckedException(ex);
			throw ex;
		}
		catch (java.rmi.RemoteException ex) {
		 	_EJS_s.setUncheckedLocalException(ex);
		}
		catch (Throwable ex) {
			_EJS_s.setUncheckedLocalException(ex);
		}

		finally {
			try {
				container.postInvoke(this, 5, _EJS_s);
			} catch ( RemoteException ex ) {
				_EJS_s.setUncheckedLocalException(ex);
			} finally {
				container.putEJSDeployedSupport(_EJS_s);
			}
		}
		return ;
	}
}
